package com.yunxi.poc.starbucks.controller;


import com.yunxi.poc.starbucks.common.BaseController;
import com.yunxi.poc.starbucks.service.IBuyService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author shiyuan.xlc
 * @since 2021-08-12
 */
@Controller
@RequestMapping("/starbucks/health")
public class HealthCheckController extends BaseController {
    @Resource
    IBuyService buyService;

    @ResponseBody
    @RequestMapping(value = {""}, method = RequestMethod.GET)
    public ResponseEntity healthCheck() {
        return ResponseEntity.status(HttpStatus.OK).body("Running...");
    }
}